import zipfile

def unzip(path):
	'''解压zip文件'''
	fz = zipfile.ZipFile(path,'r')
	for file_name in fz.namelist():
		fz.extract(file_name,path.replace(".zip",""))

def read():
	z = zipfile.ZipFile(path,'r')
	content = z.read('ChannelConfig.json').decode('utf-8')
	z.close()

def create():
	newZip = zipfile.ZipFile("new.zip", "w")
	newZip.write("spam.txt", compress_type=zipfile.ZIP_DEFLATED)
	newZip.close()